package com.job.yangshida.homework0707.lizi0707.oop1;

/**
 * @author 杨士达
 * @version 1.0
 * @since 2022-07-08 19:34:21
 */
public class TestEmployee {
    public static void main(String[] args) {
        Employee employee=new Employee("张三",20);
        System.out.println(employee.getName());
        /*System.out.println(employee.age);
        Error:(12, 36) java: age 在 com.job.yang.homework0707.
        lizi0707.oop1.Employee 中是 private 访问控制
         */
        employee.say("jake", 30);
        employee.setAge(16);
       employee.say("Jake", 30);
    }
}
